function uipreview_UpdateFcn(vid, e, h)
%UIPREVIEW_UPDATEFCN Summary of this function goes here
%   Detailed explanation goes here

set(h, 'CData', e.Data)

UpdateCallbacks = getappdata(h, 'UpdateCallbacks');
Callback_List = UpdateCallbacks{1};
Callback_Count = UpdateCallbacks{2};

for i= 1: Callback_Count
    feval(Callback_List{i}, vid, e, h);
end

end

